export const hello = () => {
    return 'hello'
}

/**
 * @修改语言
 */
export const langChange = function(string = ''){
    let tem = 'zh';
    switch(string){
        case 'zh':
            tem = string
            break
        case 'en':
            tem = string
            break
        default:
            break
    }
    localStorage.setItem('lang',tem)
    return tem
}

export const color = function( index = 0 , color = [] ){
    let serial = index%color.length
    return 'color:'+color[serial]
}

export const data_filter = function( title = '' , search = ''){
    if(!search)
    {
        return true
    }
    else
    {
        let res = title.split(search)
        if(res != [])
        {
            return true
        }
        else
        {
            return false
        }
    }
}